const mongoose  = require('mongoose');

const guestbookSchema = new mongoose.Schema({
    nickname:String,
    email:String,
    content:String,
    createTime:Date,
    avatar: String,
    os: String,
    userID: String, // 留言板所属的用户ID（博客主人的ID）
});

module.exports = mongoose.model('guestbook', guestbookSchema);
